<include file="public:header" /> <include file="public:left" />

<form method="post" enctype="multipart/form-data" >
	<input type="hidden" name="id" />
	<section>
		<h2><strong>添加商品</strong>
			<a class="fr" href="{:url('Goods/category_lists')}">返回商品分类列表</a>
		</h2>
		<ul class="ulColumn2">
			<li>
				<span class="item_name" style="width:120px;">商品分类名称：</span>
				<input type="text" name="name"  class="textbox textbox_295" value='<if condition="$goods_result">{$goods_result.name}</if>'/>
			</li>
			<li>
				<span class="item_name" style="width:120px;">上级分类名称：</span>
				<select name="p_id" id="">
					<option value="0">顶级分类</option>
					<foreach name="parent" item="p">
						<option value="{$p['id']}" <if condition="$goods_result && $goods_result['p_id'] eq $p['id']">selected</if>>{$p['name']}</option>
					</foreach>
				</select>
			</li>
			<li>
				<span class="item_name" style="width:120px;">分类图片上传：</span>
				<div class="textbox textbox_295" style="width:200px;display: inline-block;">
					<input type="file" name="goods_image" value="{$goods_result.image}"/>
				</div>
				<img src="{$img_path}{$goods_result.image}" width="100" height="100">
			</li>
			<if condition="$goods_result">
				<li>
					<span class="item_name" style="width:120px;">商品分类状态：</span>
					<label>
						<input type="radio" name="status"  value='1' <if condition="$goods_result.status eq 1">checked="checked"</if>>显示
					</label>
					<label>
						<input type="radio" name="status"  value='-1' <if condition="$goods_result.status eq -1">checked="checked"</if>>隐藏
					</label>
				</li>
			</if>
			<li>
	              <span class="item_name" style="width:120px;">排序：</span>
	              <input type="text" class="textbox textbox_295" name="sort" value="{$goods_result.sort}"/>
	        </li>
			<li>
				<span class="item_name" style="width:120px;"></span>
				<input type="submit" class="link_btn" value="提交" />
			</li>
		</ul>
		<div style="height: 150px;"></div>
	</section>
</form>

</div>
</section>
<script type="text/javascript">

</script>
</body>

</html>